﻿
function fn(h) {
    alert("Hi Kaise ho .." + h);
}
$(document).ready(function () {

    function PrintNumber(x) {
        debugger;
//        alert(x);
//        alert(x.which);
        switch (x.which) {

            case 48:
            case 49:
            case 50:
            case 51:
            case 52:
            case 53:
            case 54:
            case 55:
            case 56:
            case 57:
               // alert('switch in ' + x.which);
                break;
            default:
               // alert('switch ke bahar' + x.which);
                return false;
        }
    }

    //Start valisation
    $("#txtTotalSubject").keypress(function (e) { return PrintNumber(e); });
    //End Validation
    $("#txtTotalMark").keypress(function (e) { return PrintNumber(e); });
    //End Validation
    $("#txtGetMarks").keypress(function (e) { return PrintNumber(e); });
    //End Validation
    $("#txtRollNumber").keypress(function (e) { return PrintNumber(e); });

});